package siebje.mobi.android;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;

public class Mahjongg extends Activity implements View.OnClickListener
{
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
        Button startButton = (Button)findViewById(R.id.Button01);
        startButton.setOnClickListener(this);
    }

	public void onClick(View v) {
		Intent tabInterface = new Intent(this, ScoreTabs.class);
		tabInterface.putExtra("player1", ((EditText)findViewById(R.id.EditText01)).getText().toString()).
			putExtra("player2", ((EditText)findViewById(R.id.EditText02)).getText().toString()).
			putExtra("player3", ((EditText)findViewById(R.id.EditText03)).getText().toString()).
			putExtra("player4", ((EditText)findViewById(R.id.EditText04)).getText().toString());
		tabInterface.putExtra("score1", 0).
			putExtra("score2", 0).
			putExtra("score3", 0).
			putExtra("score4", 0);
		tabInterface.putExtra("eastPlayer", 0);
		tabInterface.putExtra("timesEast", 0);
		tabInterface.putExtra("prevailingWind", Player.Wind.EAST);
		this.startActivity(tabInterface);
	}
}